package annotation;

public record Parent(String name)  {
    @InitMethod //仅此方法有注解，使用反射拿到所有methods时就可以取出这个方法来调用
    public void Shout(){
        System.out.println("Get up early!");
    }
    public void Praise(){
        System.out.println("Good!");
    }
    public void Buy(){
        System.out.println("I will go.");
    }
}
